package com.tx.admin.modules.rbac.entity;

import javax.persistence.Entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.tx.admin.core.entity.SuperEntity;
import com.tx.admin.core.anno.JpaKey;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Entity
@Data
@ApiModel("用户实体")
public class UserEntity extends SuperEntity{

	@ApiModelProperty("账号")
	@ExcelProperty(value="账号")
	private String userName;
	
	@ApiModelProperty("密码")
	@ExcelProperty(value="密码")
	private String password;
	

	//部门
	@ApiModelProperty("所属部门")
	@ExcelProperty(value="部门")
	private String departmentId;
	
	@ApiModelProperty("盐")
	@ExcelProperty(value="盐")
	private String salt;
	
	
	@ApiModelProperty("状态")
	@ExcelProperty(value="状态")
	@JpaKey(content=true)
	private String userStatus;
}
